package com.example.domain;

import java.io.Serializable;
import java.sql.Timestamp;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * @author 袁小弘
 * @describe 培训中心学生管理————退班类
 * @date 2019-12-17 15:52
 */
@Entity
@Table(name = "quit_class")
public class QuitClass implements Serializable {

    private static final long serialVersionUID = -6669394540426593221L;

    @Id
    @GeneratedValue
    @Column(name = "quit_Id")
    private Integer quitId;//退班ID

    @Column(name = "user_Id")
    private Integer userId;//学生ID

    @Column(name = "originalClass")
    private String originalClass;//原有班级

    @Column(name = "quitStatus")
    private String quitStatus;//退班状态

    @Column(name = "quitReason")
    private String quitReason;//退班原因

    @Column(name = "comment")
    private String comment;//备注说明

    @Column(name = "recordTime")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Timestamp recordTime;//创建记录时间

    @Column(name = "updateTime")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Timestamp updateTime;//更新记录时间


    public QuitClass() {
        //无参构造
    }


    public Integer getQuitId() {
        return quitId;
    }


    public void setQuitId(Integer quitId) {
        this.quitId = quitId;
    }


    public Integer getUserId() {
        return userId;
    }


    public void setUserId(Integer userId) {
        this.userId = userId;
    }


    public void setQuitReason(String quitReason) {
        this.quitReason = quitReason;
    }


    public String getOriginalClass() {
        return originalClass;
    }

    public void setOriginalClass(String originalClass) {
        this.originalClass = originalClass;
    }

    public String getQuitStatus() {
        return quitStatus;
    }

    public void setQuitStatus(String quitStatus) {
        this.quitStatus = quitStatus;
    }

    public String getQuitReason() {
        return quitReason;
    }

    public void setQuitReson(String quitReason) {
        this.quitReason = quitReason;
    }

    public String getComment() {
        return comment;
    }

    public void setComment(String comment) {
        this.comment = comment;
    }

    public Timestamp getRecordTime() {
        return recordTime;
    }

    public void setRecordTime(Timestamp recordTime) {
        this.recordTime = recordTime;
    }

    public Timestamp getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Timestamp updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    public String toString() {
        return "QuitClass [quitId=" + quitId + ", userId=" + userId + ", originalClass=" + originalClass
                + ", quitStatus=" + quitStatus + ", quitReason=" + quitReason + ", comment=" + comment + ", recordTime="
                + recordTime + ", updateTime=" + updateTime + "]";
    }


}
